.class public Lcom/estrongs/android/ui/dialog/c1;
.super Lcom/estrongs/android/ui/dialog/n0;
.source "ToolbarManageDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/c1$a;
    }
.end annotation


# instance fields
.field private c:Z

.field private d:Z

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/estrongs/android/ui/dialog/c1$a;

.field private h:Ljava/lang/String;


# direct methods
.method private constructor <init>(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/c1$a;Ljava/lang/String;)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/n0;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->I0()Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/c1;->c:Z

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/c1;->g:Lcom/estrongs/android/ui/dialog/c1$a;

    .line 5
    iput-object p3, p0, Lcom/estrongs/android/ui/dialog/c1;->h:Ljava/lang/String;

    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/c1$a;Ljava/lang/String;)V
    .locals 1
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Lcom/estrongs/android/ui/dialog/c1$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/dialog/c1;

    invoke-direct {v0, p0, p1, p2}, Lcom/estrongs/android/ui/dialog/c1;-><init>(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/c1$a;Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/n0;->show()V

    const-string p0, "toolbar_layout_dialog"

    .line 3
    invoke-static {p0, p2}, Lcom/estrongs/android/statistics/c;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private f()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/c1;->e:Landroid/widget/TextView;

    iget-boolean v1, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    xor-int/lit8 v1, v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/c1;->f:Landroid/widget/TextView;

    iget-boolean v1, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

    return-void
.end method

.method private g()V
    .locals 3

    .line 1
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "btn"

    const-string v2, "confirm"

    .line 2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "page"

    const-string v2, "toolbar_layout_dialog"

    .line 3
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "state"

    .line 4
    iget-boolean v2, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    if-eqz v2, :cond_0

    const-string v2, "two"

    goto :goto_0

    :cond_0
    const-string v2, "one"

    :goto_0
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "from"

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/c1;->h:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 6
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "click"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/view/View;)V
    .locals 1

    .line 4
    iget-boolean p1, p0, Lcom/estrongs/android/ui/dialog/c1;->c:Z

    iget-boolean v0, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    if-eq p1, v0, :cond_0

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    iget-boolean v0, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/l;->h(Z)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/c1;->g:Lcom/estrongs/android/ui/dialog/c1$a;

    if-eqz p1, :cond_0

    .line 7
    invoke-interface {p1}, Lcom/estrongs/android/ui/dialog/c1$a;->a()V

    .line 8
    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/c1;->g()V

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/n0;->dismiss()V

    return-void
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/n0;->dismiss()V

    return-void
.end method

.method public synthetic c(Landroid/view/View;)V
    .locals 0

    const/4 p1, 0x0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/c1;->f()V

    return-void
.end method

.method public synthetic d(Landroid/view/View;)V
    .locals 0

    const/4 p1, 0x1

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/c1;->d:Z

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/c1;->f()V

    return-void
.end method

.method protected d()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/c1;->h:Ljava/lang/String;

    const-string v1, "first_launch"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method protected e()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/n0;->e()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c00f3

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setContentView(I)V

    const p1, 0x7f0901b7

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/ui/dialog/b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/b;-><init>(Lcom/estrongs/android/ui/dialog/c1;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f09022f

    .line 4
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/ui/dialog/c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/c;-><init>(Lcom/estrongs/android/ui/dialog/c1;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f090ad8

    .line 5
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/c1;->e:Landroid/widget/TextView;

    const p1, 0x7f090335

    .line 6
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/c1;->f:Landroid/widget/TextView;

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/c1;->e:Landroid/widget/TextView;

    new-instance v0, Lcom/estrongs/android/ui/dialog/d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/d;-><init>(Lcom/estrongs/android/ui/dialog/c1;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/c1;->f:Landroid/widget/TextView;

    new-instance v0, Lcom/estrongs/android/ui/dialog/a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/a;-><init>(Lcom/estrongs/android/ui/dialog/c1;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 9
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/c1;->f()V

    return-void
.end method
